package com.service.manage;

import java.lang.reflect.Proxy;

import com.base.handle.ModleHandle;
import com.base.manage.BaseManage;

public class ServiceManage extends BaseManage {
	private ServiceManage() {
    }

    public static ServiceManage getInstance() {
        return SingletonFactory.instance;
    }

    static class SingletonFactory {
        private final static ServiceManage instance = new ServiceManage();
    }
    public Object getProxy(Object obj){  	
    	return (Object) Proxy.newProxyInstance(obj.getClass().getClassLoader(), obj.getClass().getInterfaces(), new ModleHandle(obj));
    }
}
